package com.ljc;

import org.elasticsearch.client.transport.TransportClient;
import org.elasticsearch.common.settings.Settings;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
//引入mybatisPlus指定扫描的mapper包
@MapperScan("com.ljc.mapper")
@EnableScheduling

public class HomeblogApplication {

    public static void main(String[] args) {
        // 解决elasticsearch启动保存问题
        System.setProperty("es.set.netty.runtime.available.processors", "false");
        SpringApplication.run(HomeblogApplication.class, args);

        System.out.println("http://localhost:8080");
    }

}
